package com.ruoyi.monitor.service.impl;

import java.util.Collections;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.monitor.mapper.BusFlowmeterMonitordataMapper;
import com.ruoyi.monitor.domain.BusFlowmeterMonitordata;
import com.ruoyi.monitor.service.IBusFlowmeterMonitordataService;

/**
 * 水文点位监测数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
@Service
public class BusFlowmeterMonitordataServiceImpl implements IBusFlowmeterMonitordataService 
{
    @Autowired
    private BusFlowmeterMonitordataMapper busFlowmeterMonitordataMapper;

    /**
     * 查询水文点位监测数据
     * 
     * @param guid 水文点位监测数据主键
     * @return 水文点位监测数据
     */
    @Override
    public BusFlowmeterMonitordata selectBusFlowmeterMonitordataByGuid(String guid)
    {
        return busFlowmeterMonitordataMapper.selectBusFlowmeterMonitordataByGuid(guid);
    }

    /**
     * 查询水文点位监测数据列表
     * 
     * @param busFlowmeterMonitordata 水文点位监测数据
     * @return 水文点位监测数据
     */
    @Override
    public List<BusFlowmeterMonitordata> selectBusFlowmeterMonitordataList(BusFlowmeterMonitordata busFlowmeterMonitordata)
    {
        return busFlowmeterMonitordataMapper.selectBusFlowmeterMonitordataList(busFlowmeterMonitordata);
    }

    /**
     * 新增水文点位监测数据
     * 
     * @param busFlowmeterMonitordata 水文点位监测数据
     * @return 结果
     */
    @Override
    public int insertBusFlowmeterMonitordata(BusFlowmeterMonitordata busFlowmeterMonitordata)
    {
        return busFlowmeterMonitordataMapper.insertBusFlowmeterMonitordata(busFlowmeterMonitordata);
    }

    /**
     * 修改水文点位监测数据
     * 
     * @param busFlowmeterMonitordata 水文点位监测数据
     * @return 结果
     */
    @Override
    public int updateBusFlowmeterMonitordata(BusFlowmeterMonitordata busFlowmeterMonitordata)
    {
        return busFlowmeterMonitordataMapper.updateBusFlowmeterMonitordata(busFlowmeterMonitordata);
    }

    /**
     * 批量删除水文点位监测数据
     * 
     * @param guids 需要删除的水文点位监测数据主键
     * @return 结果
     */
    @Override
    public int deleteBusFlowmeterMonitordataByGuids(String[] guids)
    {
        return busFlowmeterMonitordataMapper.deleteBusFlowmeterMonitordataByGuids(guids);
    }

    /**
     * 删除水文点位监测数据信息
     * 
     * @param guid 水文点位监测数据主键
     * @return 结果
     */
    @Override
    public int deleteBusFlowmeterMonitordataByGuid(String guid)
    {
        return busFlowmeterMonitordataMapper.deleteBusFlowmeterMonitordataByGuid(guid);
    }

    @Override
    public List<Map> selectBusFlowmeterMonitordata(String riverid, String starttime, String endtime, String stationname) {
        return busFlowmeterMonitordataMapper.selectBusFlowmeterMonitordata(riverid, starttime, endtime, stationname);
    }
}
